home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / The World of Computer Software.iso / par230.zip / EXAMPLE2.INF < prev    next >
Text File  |  1993-01-03  |  1KB  |  27 lines

  1. ===============================================================================
  2. ==========================                         ============================
  3. ==========================       EXAMPLE # 2       ============================
  4. ==========================                         ============================
  5. ===============================================================================
  6.  
  7. THE INPUT FILE:  Inventory report, generated by an accounting program
  8.  
  9. WHAT WE WANT:    Copy certain fields into a comma-delimited file so that the
  10.                  data can then be imported into a spreadsheet.  The file must
  11.                  contain the following fields:
  12.  
  13.                  Reference number, Price, Quantity, Part Number, Description
  14.  
  15. HOW WE DO IT:    We copy data from fixed columns, tidy them up, put quotes
  16.                  around them, then send them to the output file.  However,
  17.                  certain lines must be inspected to ensure that they contain
  18.                  valid data.  For example, if a line contains "Date:" between
  19.                  columns 1 and 8, it is a header line, not data.
  20.  
  21.                  Since the input data for each item is spread over more than
  22.                  one line, we must also keep a counter (named ITEMCNTR) to
  23.                  tell us which line we're looking at.
  24.  
  25.  
  26.  
  27.